package com.rd.student.jike.class4.xiayinyin.week04.day28;

public class Test {

    public static void main(String[] args) {
        Drink coffee = new NaTie();
        System.out.println(coffee.getDesc());
        System.out.println(coffee.getPrice());
        System.out.println(coffee.cost());

        Decorator milk = new Milk(coffee);
        System.out.println(milk.cost());
        System.out.println(milk.getDesc());

        Drink coffee1 = new MeiShi();
        System.out.println(coffee1.getDesc());
        System.out.println(coffee1.cost());

        Decorator order = new Sugar(coffee1);
        System.out.println(order.getDesc());
        System.out.println(order.cost());
    }
}
